package com.jky.stmall.exercise;

import java.util.HashMap;
import java.util.Map;

public class myThread1 extends Thread{
    @Override
    public void run() {
        for (int i =0;i<10;i++){
            System.out.println("main1:"+i);
        }

    }

    public static void main(String[] args) {
        /*myThread m=new myThread();
        new Thread(m).start();
        for (int i =0;i<20;i++){
            System.out.println(Thread.currentThread().getName()+i);
        }
*/
        myThread1 m =new myThread1();
        m.start();
        for (int i = 0;i<15;i++){
            System.out.println(Thread.currentThread().getName()+i);
        }
        Map map=new HashMap<>();
        map.put(1,5);
        System.out.println(map.hashCode());
    }
}
